// $Id: loggernetworkthruput.h 59 2004-10-20 16:47:30Z hansemil $
#ifndef LOGGERNETWORKTHRUPUT_H
#define LOGGERNETWORKTHRUPUT_H

#include "logger.h"
#include "eos.h"
#include <fstream>

/**
 * Lists how much data that is transfered by the network each timestep
 */
class LoggerNetworkThruput : public Logger {
public:
	LoggerNetworkThruput();
	void eos_simulate_start(void *);
	void eos_simulate_stop(void *);
	void network_transfer(void*, void *, unsigned int);
	void clock_tick(unsigned int);

private:
	Eos *m_eos;
	std::fstream m_fout;

	double transferedKiloBytesPerSecond;
};

#endif
